package com.csw;

import java.awt.*;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2022/11/18 1:09
 */
public class Gold extends Object {

    Gold(){
        this.x= (int) (Math.random()*700);
        this.y= (int) (Math.random()*500+300);
        this.width=52;
        this.height=52;
        this.isMove=false;
        this.m=50;
        this.score=4;
        this.type=1;
        this.img=GameUtils.gold1;
    }

    @Override
    void paintSelf(Graphics g) {
        super.paintSelf(g);
    }
}

class GoldMini extends Gold{
    GoldMini(){
        this.width=36;
        this.height=36;
        this.m=30;
        this.score=2;
        this.img=GameUtils.gold0;
    }

}

class GoldPlus extends Gold{
    GoldPlus(){
        this.y= (int) (Math.random()*300+300);
        this.width=72;
        this.height=72;
        this.m=70;
        this.score=8;
        this.img=GameUtils.gold2;
    }
}